Skip to content

ci: remove hatch and dead code#8971

Merged
mscolnick merged 2 commits into
mainfrom
ms/ci-remove-hatch-and-dead-code
Apr 1, 2026
Merged

ci: remove hatch and dead code#8971
mscolnick merged 2 commits into
mainfrom
ms/ci-remove-hatch-and-dead-code

Conversation

@mscolnick
Copy link
Copy Markdown
Contributor

@mscolnick mscolnick commented Apr 1, 2026

This pull request removes all Dagger-related configuration, scripts, and documentation from the codebase. Dagger was previously used for containerized builds and tests, but is no longer needed. The changes include deleting Dagger workflows, configuration files, Python modules, and related documentation. Additionally, the docs build system is switched from Hatch to uv, and the backend build command is updated accordingly.

Copilot AI review requested due to automatic review settings April 1, 2026 14:53
@mscolnick mscolnick requested review from akshayka and manzt as code owners April 1, 2026 14:53
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Apr 1, 2026
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
marimo-docs Ready Ready Preview, Comment Apr 1, 2026 3:02pm

Request Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes Hatch usage and deletes unused Dagger-related code/config, consolidating build steps around uv.

Changes:

  • Remove Hatch from tooling/CI and switch ad-hoc wheel builds to uv build
  • Migrate docs/ subproject from Hatchling to uv_build
  • Delete the unused Dagger module, config, and skipped Dagger workflows

Reviewed changes

Copilot reviewed 17 out of 18 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
pyproject.toml Removes hatch from Pixi dependencies.
pyodide/build_and_serve.py Replaces hatch build with uv build for the file-watcher wheel rebuild.
docs/pyproject.toml Switches docs subproject build backend from Hatchling to uv_build.
dagger/src/main/* Removes unused Dagger module code (dead code cleanup).
dagger/* Removes Dagger project metadata/docs/lockfiles.
dagger.json Removes the Dagger module definition.
.github/workflows/test_*_dagger.yaml.skip Removes skipped/unused Dagger workflows.
.github/workflows/release-prod.yml Removes the Hatch install step; relies on uv build.

Comment on lines 38 to 41
print(f"Change detected: {event.src_path}") # noqa: T201
print("Building wheel...") # noqa: T201
subprocess.run(["hatch", "build"])
subprocess.run(["uv", "build"])
print("Wheel built successfully.") # noqa: T201
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

subprocess.run(["uv", "build"]) is invoked without check=True, so the script will print "Wheel built successfully" even if the build fails (non-zero exit code). Consider setting check=True (or checking the return code and printing stderr) and only printing the success message on success.

Copilot uses AI. Check for mistakes.
Comment thread docs/pyproject.toml
[tool.hatch.build.targets.wheel]
include = ["blocks.py"]
[tool.uv.build-backend]
module-root = ""
Copy link

Copilot AI Apr 1, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The docs project is named marimo_docs, but this uv_build config doesn’t specify a module-name. Unlike the root project (which sets module-name = "marimo"), the docs/ project doesn’t have a marimo_docs Python package/module to infer from, so builds/installs of the editable marimo_docs source may fail or omit the intended modules (notably blocks.py, used by mkdocs.yml via blocks:MarimoBlocksExtension). Configure the build backend to explicitly include the correct module(s) (e.g., set module-name appropriately and/or configure includes so blocks.py is installed).

Suggested change
module-root = ""
module-root = "."
module-name = "blocks"

Copilot uses AI. Check for mistakes.
@mscolnick mscolnick added the internal A refactor or improvement that is not user facing label Apr 1, 2026
@mscolnick mscolnick enabled auto-merge (squash) April 1, 2026 15:23
@mscolnick mscolnick disabled auto-merge April 1, 2026 18:05
@mscolnick mscolnick merged commit 493a79e into main Apr 1, 2026
50 checks passed
@mscolnick mscolnick deleted the ms/ci-remove-hatch-and-dead-code branch April 1, 2026 18:05
VishakBaddur pushed a commit to VishakBaddur/marimo that referenced this pull request Apr 4, 2026
This pull request removes all Dagger-related configuration, scripts, and
documentation from the codebase. Dagger was previously used for
containerized builds and tests, but is no longer needed. The changes
include deleting Dagger workflows, configuration files, Python modules,
and related documentation. Additionally, the docs build system is
switched from Hatch to uv, and the backend build command is updated
accordingly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation internal A refactor or improvement that is not user facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants